//package com.mmy.fta.trade.server.config;
//
//import com.dianping.cat.servlet.CatFilter;
//import org.springframework.boot.web.servlet.FilterRegistrationBean;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//import javax.servlet.DispatcherType;
//
//
///**
// * @author yupeng.wu
// * @since 2021/8/16 16:55
// */
//@Configuration
//public class CatConfig {
//    @Bean
//    public FilterRegistrationBean catFilterRegistration() {
//        FilterRegistrationBean<CatFilter> registration = new FilterRegistrationBean();
//        registration.setFilter(new CatFilter());
//        registration.setOrder(1);
//        registration.setName("cat-filter");
//        registration.addUrlPatterns("/*");
//
//        registration.setDispatcherTypes(DispatcherType.REQUEST, DispatcherType.FORWARD);
//        return registration;
//    }
//}
